package com.wzy.ssm.user.service.impl;

import org.springframework.stereotype.Service;
import com.wzy.ssm.user.model.UserLogin;
import com.wzy.ssm.user.model.UserLoginExample;
import java.lang.String;
import java.util.List;
import com.wzy.ssm.user.mapper.UserLoginMapper;
import com.wzy.ssm.user.service.UserLoginService;

@Service
public class UserLoginServiceImpl implements UserLoginService{

    private UserLoginMapper mapper;

    //通过构�?�器注入mapper
    public UserLoginServiceImpl(UserLoginMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public long countByExample(UserLoginExample example) {
        return mapper.countByExample(example);
    }

    @Override
    public int deleteByExample(UserLoginExample example) {
        return mapper.deleteByExample(example);
    }

    //注意：id的参数类�? 要修改成自己数据库的主键类型（一般为Integer或String�?
    @Override
    public int deleteByPrimaryKey(String userLoginId) {
        return mapper.deleteByPrimaryKey(userLoginId);
    }

    @Override
    public int insert(UserLogin record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(UserLogin record) {
        return mapper.insertSelective(record);
    }

    @Override
    public List<UserLogin> selectByExample(UserLoginExample example) {
        return mapper.selectByExample(example);
    }

    //注意：id的参数类�? 要修改成自己数据库的主键类型（一般为Integer或String�?
    @Override
    public UserLogin selectByPrimaryKey(String userLoginId) {
        return mapper.selectByPrimaryKey(userLoginId);
    }

    @Override
    public int updateByExampleSelective(UserLogin record,UserLoginExample example) {
        return mapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(UserLogin record,UserLoginExample example) {
        return mapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(UserLogin record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserLogin record) {
        return mapper.updateByPrimaryKey(record);
    }

}
